package com.wyh.controller;

import com.wyh.Mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/map")
public class MapController {
    @Autowired
    private EmployeeMapper mapper;
    @GetMapping("/age")
    public Object ageProportion(){
        return mapper.getAgeProportion();
    }
}
